<?php

require_once('functions/pageLoad.php');

$page_title = 'Links';

	$sql = "SELECT title, link, html FROM links ORDER BY id";
	$query=mysql_query( $sql ) or die ("Error in query: $sql . " . mysql_error());

	while($rs=mysql_fetch_assoc($query)){

	$links.='<div style="float: left; width: 100%; border-bottom: 1px dashed #c3c3c3;"><h2><a href="'.$rs['link'].'" target="_blank" title="'.$rs['title'].'">'.$rs['title'].'</a></h2><p>'.$rs['html'].'</p></div>';

	}

include('includes/meta.php');
include('includes/header.php');
include('includes/navigation.php');

?>

<h1>Links</h1>

<p>Below is a list of links we hope you will find useful. If you have a website that you believe is relevant to our users and would like to make a link exchange request, you can do so by visiting the <a href="/link-exchange">link exchange page.</a></p>

<?php echo $links; ?>

<?php 

include('includes/rightColumn.php');
include('includes/footer.php');

?>